#include "StdAfx.h"
#include "IntEntityParameter.h"


const std::string IntEntityParameter::TYPE_NAME = "integer";

IntEntityParameter::IntEntityParameter(std::string name)
{
	type = IntEntityParameter::TYPE_NAME;
	this->name = name;
}

IntEntityParameter::IntEntityParameter(std::string name, int value)
{
	type = IntEntityParameter::TYPE_NAME;
	this->name = name;
	paramValue = value;
}


IntEntityParameter::~IntEntityParameter(void)
{
}



int IntEntityParameter::getIntValue()
{
	return paramValue;
}

void IntEntityParameter::setIntValue(int value)
{
	paramValue = value;
}


void* IntEntityParameter::getValue()
{
	return (void*)&paramValue;
}
void IntEntityParameter::setValue(void* value)
{

	paramValue = (*(int*)value);
}

int IntEntityParameter::operator-(EntityParameter &param)
{

	return paramValue -(int)param.getValue();
}